package com.project.easy.common.framework.web.service.impl.login;

import com.project.easy.common.framework.auth.core.AbstractLoginProcessor;
import  com.project.easy.common.util.dto.UserInfo;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Component;

/**
 * @author GreatorMan.cool
 * @copyright: Copyright (c) 2020
 * @company: 扬起科技有限公司
 * @date 2021/11/1 21:44
 * @description: 登录处理
 */
@Component
@ConditionalOnProperty(prefix = "yqkj.user.login",  name = "strategy", matchIfMissing = false, havingValue = "default")
public class LoginProcessorProcessor extends AbstractLoginProcessor {
    /**
     * 登陆成功 回调处理数据
     * @param userInfo 用户信息
     * @return true 成功 false 失败
     */
    @Override
    public Boolean loginEx(UserInfo userInfo) {
//        LOG.info("登陆成功{}", userInfo.getAcc());
        return Boolean.TRUE;
    }
}
